Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new attribute shorthand #173

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mkatychev
Copy link
Contributor

Added support for new attribute shorthand:

[attr_key: "value"]
foo:
  echo "bar"

https://github.com/casey/just/blob/fa5770e71aa93402068ebc9e179e493fc94f8532/tests/attributes.rs#L202-L205

@@ -551,7 +551,7 @@ recipes containing attributes with arguments
================================================================================


[group("foo"), group("echo")]
[group("foo"), group: "echo"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the s-expr should not change at all since this is an alternative form of the same statement

@mkatychev
Copy link
Contributor Author

Getting an npm error on just lint:

npm run lint:check
npm error Missing script: "lint:check"
npm error
npm error To see a list of scripts, run:
npm error   npm run

@tgross35
Copy link
Collaborator

Hey sorry I totally missed this. Could you turn this into separate PRs, one that does the grammar updates (for the shorthand) and a separate one doing the support/CI/gitignore/etc updates? The grammar updates is small and looks great to me, everything else needs some more discussion.

@mkatychev
Copy link
Contributor Author

No worries, should get to this by EOW

@mkatychev
Copy link
Contributor Author

@tgross35 this should be ready to review once more

@mkatychev
Copy link
Contributor Author

https://github.com/IndianBoy42/tree-sitter-just/actions/runs/11768782768/job/32778994256?pr=173 should generated code be omitted from formatting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants